package com.example.demo.controller;

import com.example.demo.Mappers.HistestMapper;
import com.example.demo.Mappers.PatientInfoMapper;
import com.example.demo.Service.TestService;
import com.example.demo.beans.HisTestRequest;
import com.example.demo.beans.PatientInfo;
import com.example.demo.beans.TestResponse;
import com.example.demo.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2018/3/30.
 */
@RestController
public class MyController {

    @Autowired
    private HistestMapper histestMapper;

    /**
     * @RequestMapping(value = "/select", method = RequestMethod.GET)
     * public Object loginByPost() {
     * <p>
     * List<PatientInfo> ly = this.patientInfoMapper.selectallpatient();
     * System.out.print(ly);
     * return  null;
     * }
     **/
    @RequestMapping(value = "date", method = RequestMethod.GET)
    public String getString() {
        return histestMapper.GetHisTestdate();

    }
    @Autowired
    @Qualifier("testservice")
    private TestService testService;
    @RequestMapping(value ="tra",method = RequestMethod.GET)
    public void gettra(){
      testService.InsetTrance("15","15","9","9");
      return;
    }


}
